{% extends "../layout.html" %}
{% block head %}
<link rel="stylesheet" href="/public/css/back/common.css">
<script src="/public/jsLib/paging.js"></script>
<script src="/public/js/back/page.js"></script>
<script src="/public/js/back/classify_index.js"></script>
{% endblock %}

{%block main %}
<!--头部-->
<ol class="breadcrumb clear">
    <li><a href="/admin">管理首页</a></li>
    <li><span>分类列表</span></li>
    <li class="addUser">
        <a href="/admin/classify/add" type="button" class="btn btn-primary">
            <span class="glyphicon glyphicon-plus"></span>
            <span>添加分类</span>
        </a>
    </li>
</ol>

<!--分类数据表格-->
<table class="table table-bordered table-hover showTab">
    <tr class="theader">
        <th class="select"><input type="checkbox"></th>
        <th>分类名称</th>
        <th>操作</th>
    </tr>

    {% for classify in allClass%}
    <tr class="trContent">
        <td class="select"><input type="checkbox"></td>
        <td class="classifyName">{{classify.classifyName}}</td>
        <td class="operation">
            <button type="button" class="btn btn-info btn-sm see" data-toggle="modal" data-target="#myModal">查看</button>
            <button type="button" class="btn btn-primary btn-sm edit" data-toggle="modal" data-target="#myModal">编辑</button>
            <button type="button" class="btn btn-danger btn-sm del" data-toggle="modal" data-target="#myModal">删除</button>
        </td>
    </tr>
    {% endfor %}
</table>

<!--模态框-->
{% include "../modalBox.html" %}
<!--分页-->
{% include "../page.html" %}




{%endblock%}